home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5356 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  777 b 

  1. Path: lrz-muenchen.de!news
  2. From: watzka@stat.uni-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: fwrite help?
  5. Date: 12 Feb 1996 12:41:36 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4fnci0$27d@sparcserver.lrz-muenchen.de>
  9. References: <4fmaig$7of@news.global1.net>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. youngrc@global1.net writes:
  13.  
  14.  
  15. >What would the syntax for fwrite be to output 8 characters of 
  16. >char line[10] to a file?  K&R doesn't write much about it. Thanks
  17. >for the help.
  18.  
  19.    fwrite(line, 1, 8, fp);
  20.  
  21. Your libraries _did_ come with some documentation, didn't they?
  22.  
  23. Kurt
  24. --
  25. | Kurt Watzka                             Phone : +49-89-2180-6254
  26. | watzka@stat.uni-muenchen.de
  27. | ua302aa@sunmail.lrz-muenchen.de
  28.